import { request } from '@/service/request';

// ---------- AuditRecord Begin ----------

/** get auditRecord page */
export function fetchGetCjAuditRecordPage(params?: Api.Sampling.AuditRecordSearchParams) {
  return request<Api.Sampling.AuditRecordList>({
    url: '/cj_audit_record/page',
    method: 'GET',
    params
  });
}

/** add auditRecord info */
export function fetchAddCjAuditRecord(data: Api.Sampling.AuditRecordEdit) {
  return request<boolean>({
    url: '/cj_audit_record/',
    method: 'POST',
    data
  });
}

/** update auditRecord info */
export function fetchUpdateCjAuditRecord(data: Api.Sampling.AuditRecordEdit) {
  return request<boolean>({
    url: '/cj_audit_record/',
    method: 'PUT',
    data
  });
}

/** edit delete auditRecord */
export function fetchDeleteCjAuditRecord(data: Api.Common.DeleteParams) {
  return request<boolean>({
    url: '/cj_audit_record/',
    method: 'DELETE',
    data
  });
}
